<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtNfcClient Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-slots">Protected Slots</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_q_qt_nfc_client-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtNfcClient Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_q_qt_nfc_client.html" title="The QQtNfcClient class NfcClient既可以作为Client，也可以作为Server，它是无连接的，基于数据报的协议。 ...">QQtNfcClient</a> class NfcClient既可以作为Client，也可以作为Server，它是无连接的，基于数据报的协议。 在继承自QQtProtocol的xxxProtocol里，直接使用QNdefMessage就可以，不必使用QQtMessage强制转换。 这里发送和接收都是QByteArray，可以和QNdefMessage之间进行直接转换。消息没有ID，用户自行分辨Message。  
 <a href="class_q_qt_nfc_client.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qqtnfcclient_8h_source.html">qqtnfcclient.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QQtNfcClient:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_qt_nfc_client.png" usemap="#QQtNfcClient_map" alt=""/>
  <map id="QQtNfcClient_map" name="QQtNfcClient_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:ae325eb6570c1b76073262253e932b173"><td class="memItemLeft" align="right" valign="top"><a id="ae325eb6570c1b76073262253e932b173"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>slotWriteData</b> (const QByteArray &amp;bytes)</td></tr>
<tr class="separator:ae325eb6570c1b76073262253e932b173"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a4413122da1762c6180e78530de81d040"><td class="memItemLeft" align="right" valign="top"><a id="a4413122da1762c6180e78530de81d040"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>readyRead</b> (const QByteArray &amp;bytes)</td></tr>
<tr class="separator:a4413122da1762c6180e78530de81d040"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:acc67f89320ae2bb08c53bd1598604f3e"><td class="memItemLeft" align="right" valign="top"><a id="acc67f89320ae2bb08c53bd1598604f3e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtNfcClient</b> (QObject *parent=Q_NULLPTR)</td></tr>
<tr class="separator:acc67f89320ae2bb08c53bd1598604f3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6ac0c535ce6014b43e3291c4316e605"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_nfc_client.html#aa6ac0c535ce6014b43e3291c4316e605">installProtocol</a> (<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *stack)</td></tr>
<tr class="separator:aa6ac0c535ce6014b43e3291c4316e605"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4cd4351d05fbe8bc686c7627a781ec0"><td class="memItemLeft" align="right" valign="top"><a id="ad4cd4351d05fbe8bc686c7627a781ec0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>uninstallProtocol</b> (<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *stack)</td></tr>
<tr class="separator:ad4cd4351d05fbe8bc686c7627a781ec0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48976d2d4521e7dfca8f1346d629e85a"><td class="memItemLeft" align="right" valign="top"><a id="a48976d2d4521e7dfca8f1346d629e85a"></a>
<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>installedProtocol</b> ()</td></tr>
<tr class="separator:a48976d2d4521e7dfca8f1346d629e85a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42e78f73bbb6e312aa8dafbcceb7553d"><td class="memItemLeft" align="right" valign="top"><a id="a42e78f73bbb6e312aa8dafbcceb7553d"></a>
virtual QByteArray&#160;</td><td class="memItemRight" valign="bottom"><b>uid</b> () const override</td></tr>
<tr class="separator:a42e78f73bbb6e312aa8dafbcceb7553d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64e7385348035db384718c7ceb8e2ab4"><td class="memItemLeft" align="right" valign="top"><a id="a64e7385348035db384718c7ceb8e2ab4"></a>
virtual Type&#160;</td><td class="memItemRight" valign="bottom"><b>type</b> () const override</td></tr>
<tr class="separator:a64e7385348035db384718c7ceb8e2ab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a763e006405a3b98b354f4c27343efa2b"><td class="memItemLeft" align="right" valign="top"><a id="a763e006405a3b98b354f4c27343efa2b"></a>
virtual AccessMethods&#160;</td><td class="memItemRight" valign="bottom"><b>accessMethods</b> () const override</td></tr>
<tr class="separator:a763e006405a3b98b354f4c27343efa2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ab7e686f6a1da0b74d42585c7ac2b1a"><td class="memItemLeft" align="right" valign="top"><a id="a8ab7e686f6a1da0b74d42585c7ac2b1a"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>setUid</b> (QByteArray uid)</td></tr>
<tr class="separator:a8ab7e686f6a1da0b74d42585c7ac2b1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac450771d14ff1b5eaad7ae3aa98e45be"><td class="memItemLeft" align="right" valign="top"><a id="ac450771d14ff1b5eaad7ae3aa98e45be"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>setType</b> (Type type)</td></tr>
<tr class="separator:ac450771d14ff1b5eaad7ae3aa98e45be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d384c532a0c8cbd55156a9079b6a354"><td class="memItemLeft" align="right" valign="top"><a id="a0d384c532a0c8cbd55156a9079b6a354"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>setAccessMethods</b> (AccessMethods methods)</td></tr>
<tr class="separator:a0d384c532a0c8cbd55156a9079b6a354"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-slots"></a>
Protected Slots</h2></td></tr>
<tr class="memitem:ab4ca864da3b110d3bae616d31abca2cb"><td class="memItemLeft" align="right" valign="top"><a id="ab4ca864da3b110d3bae616d31abca2cb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>readyReadNdefMessage</b> (const QNdefMessage &amp;)</td></tr>
<tr class="separator:ab4ca864da3b110d3bae616d31abca2cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a5b8bb64f83317f7d12370c473a66e4f0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_nfc_client.html#a5b8bb64f83317f7d12370c473a66e4f0">translator</a> (const QByteArray &amp;bytes)</td></tr>
<tr class="memdesc:a5b8bb64f83317f7d12370c473a66e4f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">translator 用于拆分和分发数据报  <a href="#a5b8bb64f83317f7d12370c473a66e4f0">More...</a><br /></td></tr>
<tr class="separator:a5b8bb64f83317f7d12370c473a66e4f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_q_qt_nfc_client.html" title="The QQtNfcClient class NfcClient既可以作为Client，也可以作为Server，它是无连接的，基于数据报的协议。 ...">QQtNfcClient</a> class NfcClient既可以作为Client，也可以作为Server，它是无连接的，基于数据报的协议。 在继承自QQtProtocol的xxxProtocol里，直接使用QNdefMessage就可以，不必使用QQtMessage强制转换。 这里发送和接收都是QByteArray，可以和QNdefMessage之间进行直接转换。消息没有ID，用户自行分辨Message。 </p>
<p>这个Client是个raw客户端，数据全都在Message里的各个Record的PayLoad里， 而PayLoad里的数据格式，用户自行编订。 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aa6ac0c535ce6014b43e3291c4316e605"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6ac0c535ce6014b43e3291c4316e605">&#9670;&nbsp;</a></span>installProtocol()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QQtNfcClient::installProtocol </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *&#160;</td>
          <td class="paramname"><em>stack</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Target信息 协议安装器 </p>

</div>
</div>
<a id="a5b8bb64f83317f7d12370c473a66e4f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b8bb64f83317f7d12370c473a66e4f0">&#9670;&nbsp;</a></span>translator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QQtNfcClient::translator </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>bytes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>translator 用于拆分和分发数据报 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bytes</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/network/<a class="el" href="qqtnfcclient_8h_source.html">qqtnfcclient.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/network/qqtnfcclient.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
